package cn.wp.basic.query;

import lombok.Data;

/**
 * 分页查询封装的实体类
 */
@Data
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;

    private String keyword = null;

    public Integer getBegin() {
        return (this.currentPage - 1)*this.pageSize;
    }
}
